#include<iostream>

using namespace std;

class CVector
{
private:
    int *data;
    int n;
public:
    CVector()
    {
        n=5;
        data=new int[n];
        for(int i=0;i<n;i++)
        {
            data[i]=i;
            //cout<<data[i]<<endl;
        }
    }
    CVector(int n1,int *a)
    {
        n=n1;
        data=a;
    }
    void print()
    {
        int i;
        for(i=0;i<n-1;i++)
        {
            //cout<<i<<endl;
            cout<<data[i]<<" "; 
        }
        cout<<data[i]<<endl;  
    }
    friend CVector add(const CVector v1, const CVector v2);
    ~CVector(){};
};

CVector add(const CVector v1, const CVector v2)
{
    int i;
    v1.print();
    v2.print();
    CVector p;
    p.n=v1.n;
    //v1.n=10;
    for(i=0;i<v1.n-1;i++)
    {
        cout<<v1.data[i]+v2.data[i]<<" ";
    }
    cout<<v1.data[i]+v2.data[i]<<endl;
}

int main()
{
    int t;
    cin>>t;
    while(t--)
    {
        int n;
        cin>>n;
        int *a=new int[n];
        int *b=new int[n];
        for(int i=0;i<n;i++)
        {
            cin>>a[i];
        }
        for(int i=0;i<n;i++)
        {
            cin>>b[i];
        }
        CVector p1,p2;
        p1=CVector(n,a);
        p2=CVector(n,b);
        add(p1,p2);
    }
    return 0;
}